package com.stone.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stone.bean.dto.SysUserPasswordDTO;
import com.stone.bean.dto.UserAddDTO;
import com.stone.bean.dto.UserUpdateDTO;
import com.stone.bean.vo.LoginVO;
import com.stone.entity.SysUser;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author stone
 * @since 2022-04-02
 */
public interface SysUserService extends IService<SysUser> {

    LoginVO selectByPhoneAndPwd(String phone, String password);

    void saveUserToken(Long id, String token);

    void updateUserPassword(SysUserPasswordDTO dto, String token);

    boolean checkUserToken(Long id, String token);

    void reSetPassword(Long userId, String token);

    void saveIp(Long id, String clientIP);

    void addUser(UserAddDTO dto);

    void updateUser(UserUpdateDTO dto);
}
